package com.example.ali.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 〈阿里OCR识别结果〉
 *
 * @author hero
 * @create 2024/5/29
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MyOcrResult implements Serializable {
    private static final long serialVersionUID = 2805459173616641313L;


    @JsonProperty("pos")
    private List<PosDTO> pos;

    @JsonProperty("tableCellId")
    private Integer tableCellId;

    @JsonProperty("word")
    private String word;

    @JsonProperty("xec")
    private Integer xec;

    @JsonProperty("xsc")
    private Integer xsc;

    @JsonProperty("yec")
    private Integer yec;

    @JsonProperty("ysc")
    private Integer ysc;

    @NoArgsConstructor
    @Data
    public static class PosDTO {
        @JsonProperty("x")
        private Integer x;
        @JsonProperty("y")
        private Integer y;
    }
}